package com.mf.all.mapper;

import com.mf.all.entity.dto.DtoPermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 权限表
 * @date 2025-04-02 22:36:49
 */
@Mapper
public interface MapperPermission extends BaseMapper<DtoPermission> {
    /**
     * 根据角色id查询权限
     */
    List<DtoPermission> permissionByRoleId(@Param("roleId") Integer roleId);
    /**
     * 根据用户id查询权限
     */
    List<DtoPermission> listByUserId(long userId);
}
